#ifndef STRAY_RESOURCE_PMD_FILE_H
#define STRAY_RESOURCE_PMD_FILE_H

#include "../ResourceFile.h"
#include "../ResFileData.h"
#include "../../../ThirdParty/meshio/meshio.h"

namespace Stray {
namespace Resource {

class PmdFile : public ResourceFile
{
public:
	PmdFile(const FileID& fileName);
	PmdFile(const FileID& fileName, const Stray::Core::FileStream::ByteArray& fileData);

	void loadData();
	void writeData(const ResFileDataPtr& spResouces);

	ResFileDataPtr getResources() const;
private:
	meshio::pmd::IO pmdIO_;
};

}
}

#endif